package com.inspur.security.cbb3.kms.keymanager.secretsstore.repository;

import com.inspur.security.cbb3.kms.keymanager.secretsstore.po.SecretsStoreBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 密钥存储表
 * @author lijunchang
 */
public interface SecretsStoreRepository extends JpaRepository<SecretsStoreBean, String>, JpaSpecificationExecutor<SecretsStoreBean> {
    /**
     * 根据密钥主键进行密钥信息查找
     *
     * @param secretId 密钥主键
     * @return 密钥信息
     */
    SecretsStoreBean findBySecretId(String secretId);
}
